<form id="form" action="{:url('ais/shop.cate/edit')}">
<input type="hidden" name="id" value="{$info.id}"/>
<input type="hidden" name="picture" value="{$info.picture}" id="picture" />
<table class="formtable"> 
    <tr><th>专题属性:</th><td>
        <select datatype="*" class="select fn-left" name="types">
            <option value="0"{if $info.types == 0} selected{/if}>默认属性</option>
            <option value="1"{if $info.types == 1} selected{/if}>首页推荐</option>
        </select>
    </td></tr>
    <tr><th>展示方式:</th><td>
        <select datatype="*" class="select fn-left" name="show_type">
            <option value="0"{if $info.show_type == 0} selected{/if}>双栏小图</option>
            <option value="1"{if $info.show_type == 1} selected{/if}>单栏大图</option>
        </select>
        <span class="gray">优选商品首页展示方式</span>
    </td></tr>
    <tr>
        <th>专题名称:</th>
        <td><input class="input w400" datatype="*" type="text" name="title"  value="{$info.title}" /></td>
    </tr>
    <tr>
        <th>专题简介:</th>
        <td><textarea class="textarea w400 h60" datatype="*" type="text" name="content" />{$info.content}</textarea></td>
    </tr>
    <tr><th>专题图片</th><td>
        <div url="{:url('system/passport.common/upload')}" class="box-view fn-cp w400 h150">
            {notempty name="info.picture"}<img src="{$info.picture}">{/notempty}<div class="opera">建议宽750px高350</div>
        </div>
    </td></tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</form>
<script type="text/javascript">
Do('base','layer','form',function(){
    $('#form').isForm();
    $(".box-view").win(); 
})
function setImg(show_src){
    $("#picture").val(show_src);
    $(".box-view").html('<img src="'+show_src+'">');  
}
</script>